package com.atguigu.gulimall.order.to;

import com.atguigu.gulimall.order.entity.OrderEntity;
import com.atguigu.gulimall.order.entity.OrderItemEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @create: 2024/9/12
 * @author: gyhe10
 * @description: 封装订单创建成功后需要传输的数据
 **/
@Data
public class OrderCreateTo {
    /**
     * 订单详情
     */
    private OrderEntity order;
    /**
     * 订单项详情
     */
    private List<OrderItemEntity> orderItems;
    /**
     * 订单应付价格
     */
    private BigDecimal payPrice;
    /**
     * 运费
     */
    private BigDecimal fare;
}
